package cn.yoshii.ad.adserver

import cn.yoshii.ad.adserver.config.AdProperties
import org.springframework.boot.autoconfigure.SpringBootApplication
import org.springframework.boot.context.properties.EnableConfigurationProperties
import org.springframework.boot.runApplication
import org.springframework.scheduling.annotation.EnableAsync
import org.springframework.scheduling.annotation.EnableScheduling

@SpringBootApplication(
	scanBasePackages = [
		"cn.yoshii.libs.webstarter",
		"cn.yoshii.ad.adserver",
	]
)
@EnableAsync
@EnableScheduling
@EnableConfigurationProperties(AdProperties::class)
class AdServerApplication

fun main(args: Array<String>) {
	runApplication<AdServerApplication>(*args)
}
